﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// 用函数制作简易登录程序
/// </summary>
/*
 *name:姚铁 
 *time:2017.9.8
 */

namespace work_8_2
{
    class Program
    {
        static void Main(string[] args)
        {
            ZhangHao();
            MiMa();
            
        }
        static void ZhangHao()
        {
            Console.Write("请输入账号：");
            Console.ReadLine();
        }
        static void MiMa()
        {
            Console.Write("请输入密码：");
            string a = Console.ReadLine();
            if (a == "123456789") { Console.WriteLine("欢迎来到凹凸世界！"); }
            else if (a != "123456789") { Console.WriteLine("密码错误"); } 
            Console.ReadKey();
        }
    }
}
